package com.ansion.basedb.dao;


import com.ansion.basedb.dao.model.ContactsModel;

import java.util.List;

public interface ContactsDao extends CocoBaseDao {
	interface DBOperationCallback {
        void onFinished();
    }
	
    ContactsModel getContact(long uid);

    List<ContactsModel> loadAll(boolean fromDb);

    
    void saveContact(ContactsModel contact);
    void saveContact(List<ContactsModel> contacts);
    void deleteContact(long uid);
    
    void deleteContacts(List<Long> uids);
    
    void deleteAll();
    void checkAllContacts(List<ContactsModel> contactList,boolean isFirstLoad);
    /**
     * 联系人是否load完，包括从本地通讯录同步到soma
     * @return
     */
    boolean isContactLoaded();
    void setContactLoaded();

}
